<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="Entity.*"%>
<%@page import="Dao.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>视频审核</title>
</head>
<body>
	<%
		List<Video> vlist = new ArrayList<Video>();
		if (session.getAttribute("Video_session") != null) {
			vlist = (List) session.getAttribute("Video_session");
		}
		String all="all";
		String notcheck="notcheck";
		String ispassed="ispassed";
		String notpassed="notpassed";
	%>
	<link href="<%=request.getContextPath()%>/css/backstage.css"
		rel="stylesheet" type="text/css" />
	<div class="header">
		<font size="6" color="#62A8EA"><br />&emsp;&emsp;&emsp;视频管理</font>
	</div>

	<div class="body">
		<!-- <form action="../AdminControl/videoManage/" method="get">
			<table>
				<tr>
					<td colspan="6"><select name="check_video">
							<option value="全部">全部</option>
							<option value="待审核">待审核</option>
							<option value="已审核通过">已审核通过</option>
							<option value="未通过">未通过</option>
					</select></td>
					<td><input type="submit" value="确定"></td>
				</tr>
			</table>
		</form> -->
		<table>
		<tr>
		<td>
		<a href="../../AdminControl/videoManage/<%=all %>"
					style="text-decoration: none">全部</a></td>
					<td></td><td></td><td></td>
		<td>
		<a href="../../AdminControl/videoManage/<%=notcheck %>"
					style="text-decoration: none">待审核</a>
		</td><td></td><td></td><td></td>
		<td>
		<a href="../../AdminControl/videoManage/<%=ispassed %>"
					style="text-decoration: none">已审核通过</a>
		</td><td></td><td></td><td></td>
		<td>
		<a href="../../AdminControl/videoManage/<%=notpassed %>"
					style="text-decoration: none">未通过</a>
		</td>
		</tr>
		</table>
		<form action="../../AdminControl/checkVideo" method="post" 
			name="videoManage_form">
			<table class="dataintable">
				<tr>
					<td>视频ID</td>
					<td>视频名称</td>
					<td>标签</td>
					<td>上传者ID</td>
					<td>上传时间</td>
					<td>简介</td>
					<td>状态</td>
					<td colspan="2">操作</td>
					<td>查看</td>
				</tr>
				<%
				for(Video vid:vlist){
				%>
				<tr>
				<td><input type="text" value=<%=vid.getVideo_id() %> name="video_id"></td>
				<td><input type="text" value=<%=vid.getVideo_name() %> name="video_name"></td>
				<td><input type="text" value=<%=vid.getVideo_label() %> name="video_label"></td>
				<td><input type="text" value=<%=vid.getUploader_id() %> name="uploader_id"></td>
				<td><input type="text" value=<%=vid.getUpload_time() %> name="upload_time"></td>
				<td><input type="text" value=<%=vid.getBrief_introduce() %> name="brief_introduce"></td>
				<td><input type="text" value=<%=vid.getIs_checked() %> name="is_checked"></td>
				<td>
				<select name="operation">
							<option value="pass">通过</option>
							<option value="nopass">不通过</option>
					</select></td>
					<td>
					<input type="submit" value="确定">
					</td>
					<td>
					<a href="../../AdminControl/showVideoById/<%=vid.getVideo_id() %>" target="_blank">查看</a>
					</td>
				</tr>
				<%} %>
			</table>
		</form>
	</div>


</body>
</html>